package com.dense.kuiniu.floatcabinet.mvp.contract;

import com.dense.kuiniu.floatcabinet.mvp.http.entity.AdminBean;
import com.dense.kuiniu.floatcabinet.mvp.http.entity.BaseResponse;
import com.dense.kuiniu.floatcabinet.mvp.http.entity.Reader;
import com.jess.arms.mvp.IModel;
import com.jess.arms.mvp.IView;

import io.reactivex.Observable;

/**
 * @author Administrator
 * @date 2020/9/28
 */
public interface HomeContract {
    interface View extends IView {
        void adminLoginResult(AdminBean adminBean);

        void authentication(Reader reader, Class<?> cls);


    }

    interface Model extends IModel {
        Observable<BaseResponse<AdminBean>> adminLogin(String account, String password);

        Observable<BaseResponse<Reader>> readerAuthentication(String account, String password);
    }
}
